// 
// 
// 

#include "PanelMenuBase.h"
#include "ControlPanelClass.h"



void PanelMenuBaseClass::init()
{


}

void PanelMenuBaseClass::PrintMenu(const char options[4][7], int selectedIndex)
{
	ControlPanel.LCD.clear();
	int row = 1;
	int column = 2;
	for(int i =0;i<4;i++)
	{
		switch(i)
		{
		case 0:
			row = 1;
			column = 2;
			break;
		case 1:
			row = 1;
			column = 10;
			break;
		case 2:
			row = 2;
			column = 2;
			break;
		case 3:
			row = 2;
			column = 10;
			break;
		}
		if(i == selectedIndex)
		{
			//Place the selection cursor
			ControlPanel.LCD.setCursor(row,column - 1);
			ControlPanel.LCD.print(">");
		}
		ControlPanel.LCD.setCursor(row,column);
		Serial.println("Writing item ");
		Serial.println(options[i]);

		ControlPanel.LCD.print(options[i]);
	}
}

void PanelMenuBaseClass::OnSetActive()
{

}

void PanelMenuBaseClass::update()
{
	//Base does nothing
}

